import 'package:flutter/material.dart';
import 'package:mobile_app.home.menu/about_page/presentation/theme/theme.dart';
import 'package:mobile_app.home.menu/ios_payment_by_sim_card_page/presentation/theme/theme.dart';
import 'package:mobile_app.home.menu/signing_in_page/presentation/theme/theme.dart';
import 'package:mobile_app.home.menu/signing_up_page/presentation/theme/theme.dart';

class MenuThemeProvider extends StatelessWidget {
  const MenuThemeProvider({
    required this.brightness,
    required this.primaryColor,
    required this.primaryContrastingColor,
    required this.child,
    super.key,
  });

  final Brightness brightness;
  final Color primaryColor;
  final Color primaryContrastingColor;
  final Widget child;

  @override
  Widget build(BuildContext context) {
    return AboutPageTheme(
      brightness: brightness,
      child: IosPaymentBySimCardPageTheme(
        brightness: brightness,
        child: SigningInPageTheme(
          brightness: brightness,
          primaryContrastingColor: primaryContrastingColor,
          child: SigningUpPageTheme(
            brightness: brightness,
            primaryColor: primaryColor,
            primaryContrastingColor: primaryContrastingColor,
            child: child,
          ),
        ),
      ),
    );
  }
}
